package net.flyinggroup.mapstruct.extension;


import im.aop.loggers.advice.around.LogAround;
import net.flyinggroup.mapstruct.extension.adapter.ConversionServiceAdapter;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.springframework.core.convert.converter.Converter;

//@Mapper(componentModel = "spring")
@Mapper(componentModel = "spring", uses = ConversionServiceAdapter.class)
public interface CarMapper extends Converter<Car, CarDTO> {

//    CarMapper INSTANCE = Mappers.getMapper(CarMapper.class);

    @Mapping(target = "seats", source = "seatConfiguration")
    CarDTO convert(Car car);
}
